home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-11-10 | 1.2 KB | 29 lines | [TEXT/GEOL] |
- Item 4129613 3-Nov-89 22:43
-
- From: PASCOE1 Pascoe, Geoff
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: TCellSelectCommand Bug
-
- Curtis,
-
- Yeah, this seems to be a bug to me. I think the proper fix would be to set
- fPrevSelection and fDifference to NIL before the call to ICommand. That way,
- when the TCellSelectCommand is freed by a failure handler further up in the
- stack the regions will get freed also- but only if they were allocated in the
- first place, since we check for NIL before trying to free them.
-
- One could set up a failure handler in ICellSelectCommand to catch the failures
- but it is unnecessary since the TCellSelectCommand will need to free the
- regions in TCellSelectCommand.Free anyway. But, if you had assigned these
- regions to temporaries (i.e., the object proper did not have a handle to them)
- you would have to set up a failure handler since there is no way the Free
- method could free something it does not hold in instance variables.
-
- I could be wrong on this, since it's been a while since I've put in failure
- handlers. If someone else has a different perspective I'd like to here it.
-
- Geoff
-
-